package com.syh.jn.scm.infrastructure.repository.model.base;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 运营项目商品
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_PROJECT_ITEM")
@EqualsAndHashCode(callSuper = true)
public class ProjectItemModel extends SuperBusinessModel {
  /**
   * 运营项目id
   */
  @Column(name = "PROJECT_ID", columnDefinition = "bigint COMMENT '运营项目id'")
  private Long projectId;
  /**
   * 商品id
   */
  @Column(name = "GOODS_ID", columnDefinition = "bigint COMMENT '商品id'")
  private Long goodsId;
  /**
   * 商品编码
   */
  @Column(name = "GOODS_CODE", columnDefinition = "varchar(50) COMMENT '商品编码'")
  private String goodsCode;
  /**
   * 商品名称
   */
  @Column(name = "GOODS_NAME", columnDefinition = "varchar(50) COMMENT '商品名称'")
  private String goodsName;
  /**
   * 分类id
   */
  @Column(name = "CATEGORY_ID", columnDefinition = "bigint COMMENT '分类id'")
  private Long categoryId;
  /**
   * 计量单位
   */
  @Column(name = "UNITS", columnDefinition = "varchar(50) COMMENT '计量单位'")
  private String units;
}
